from django import template
from django.conf import settings

register = template.Library()

@register.filter
def to_app_name(value):
    return value._meta.app_label

@register.assignment_tag
def get_user_models():
    return settings.USER_APPS